Package jeresources.util
Class FakeClientLevel
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
net.minecraft.world.level.Level
net.minecraft.client.multiplayer.ClientLevel
jeresources.util.FakeClientLevel
- All Implemented Interfaces:
AutoCloseable,net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource,net.minecraft.world.level.BlockAndTintGetter,net.minecraft.world.level.BlockGetter,net.minecraft.world.level.CollisionGetter,net.minecraft.world.level.CommonLevelAccessor,net.minecraft.world.level.EntityGetter,net.minecraft.world.level.LevelAccessor,net.minecraft.world.level.LevelHeightAccessor,net.minecraft.world.level.LevelReader,net.minecraft.world.level.LevelSimulatedReader,net.minecraft.world.level.LevelSimulatedRW,net.minecraft.world.level.LevelTimeAccess,net.minecraft.world.level.LevelWriter,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.Level>,net.minecraftforge.common.extensions.IForgeBlockGetter,net.minecraftforge.common.extensions.IForgeLevel
public class FakeClientLevel
extends net.minecraft.client.multiplayer.ClientLevel
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.multiplayer.ClientLevel
net.minecraft.client.multiplayer.ClientLevel.ClientLevelDataNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.client.multiplayer.ClientLevel.ClientLevelDataFields inherited from class net.minecraft.world.level.Level
addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, LONG_PARTICLE_CLIP_RANGE, MAX_BRIGHTNESS, MAX_ENTITY_SPAWN_Y, MAX_LEVEL_SIZE, MIN_ENTITY_SPAWN_Y, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, restoringBlockSnapshots, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) <T> net.minecraftforge.common.util.LazyOptional<T>getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, net.minecraft.core.Direction facing) net.minecraft.client.multiplayer.ClientChunkCachenet.minecraft.world.entity.EntitygetEntity(int p_73045_1_) intnet.minecraft.world.level.saveddata.maps.MapItemSavedDatagetMapData(String mapName) net.minecraft.world.item.crafting.RecipeManagernet.minecraft.world.scores.ScoreboardbooleanhasChunk(int p_217354_1_, int p_217354_2_) voidlevelEvent(net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) voidplaySound(net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.sounds.SoundEvent soundIn, net.minecraft.sounds.SoundSource source, float volume, float pitch) voidplaySound(net.minecraft.world.entity.player.Player p_184133_1_, net.minecraft.core.BlockPos p_184133_2_, net.minecraft.sounds.SoundEvent p_184133_3_, net.minecraft.sounds.SoundSource source, float p_184133_5_, float p_184133_6_) voidsendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) voidsetMapData(String p_171670_, net.minecraft.world.level.saveddata.maps.MapItemSavedData p_171671_) Methods inherited from class net.minecraft.client.multiplayer.ClientLevel
addAlwaysVisibleParticle, addAlwaysVisibleParticle, addDestroyBlockEffect, addMapData, addParticle, addParticle, addPlayer, animateTick, calculateBlockTint, clearTintCaches, createFireworks, disconnect, doAnimateTick, effects, entitiesForRendering, fillReportDetails, gameEvent, gatherChunkSourceStats, getAllMapData, getBlockTicks, getBlockTint, getCloudColor, getEntities, getEntityCount, getFluidTicks, getLevelData, getServerSimulationDistance, getShade, getSharedSpawnAngle, getSharedSpawnPos, getSkyColor, getSkyDarken, getSkyFlashTime, getStarBrightness, getUncachedNoiseBiome, globalLevelEvent, isLightUpdateQueueEmpty, onChunkLoaded, players, playLocalSound, playLocalSound, playSound, pollLightUpdates, putNonPlayerEntity, queueLightUpdate, registryAccess, removeEntity, sendPacketToServer, setBlocksDirty, setDayTime, setDefaultSpawnPos, setGameTime, setKnownState, setLightReady, setScoreboard, setSectionDirtyWithNeighbors, setServerSimulationDistance, setSkyFlashTime, shouldTickDeath, tick, tickEntities, tickNonPassenger, toString, unloadMethods inherited from class net.minecraft.world.level.Level
addBlockEntityTicker, addFreshBlockEntities, blockEntityChanged, blockEvent, broadcastEntityEvent, close, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, explode, explode, explode, getBestNeighborSignal, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getDirectSignalTo, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLightEngine, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSignal, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, guardEntityTick, hasNeighborSignal, hasSignal, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isHumidAt, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, nextSubTickCount, noSave, onBlockStateChange, postGameEventInRadius, prepareWeather, removeBlock, removeBlockEntity, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setRainLevel, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightnessMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntityMethods inherited from interface net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, getDifficulty, levelEvent, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getBrightness, getChunk, getChunk, getDirectSignal, getHeight, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isAreaLoaded, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock
-
Field Details
-
clientLevelData
public static final net.minecraft.client.multiplayer.ClientLevel.ClientLevelData clientLevelData
-
-
Constructor Details
-
FakeClientLevel
public FakeClientLevel()
-
-
Method Details
-
getCapability
@Nullable public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, @Nullable net.minecraft.core.Direction facing) - Specified by:
getCapabilityin interfacenet.minecraftforge.common.capabilities.ICapabilityProvider- Overrides:
getCapabilityin classnet.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
-
sendBlockUpdated
public void sendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) - Overrides:
sendBlockUpdatedin classnet.minecraft.client.multiplayer.ClientLevel
-
playSound
public void playSound(@Nullable net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.sounds.SoundEvent soundIn, net.minecraft.sounds.SoundSource source, float volume, float pitch) - Overrides:
playSoundin classnet.minecraft.client.multiplayer.ClientLevel
-
playSound
public void playSound(@Nullable net.minecraft.world.entity.player.Player p_184133_1_, net.minecraft.core.BlockPos p_184133_2_, net.minecraft.sounds.SoundEvent p_184133_3_, net.minecraft.sounds.SoundSource source, float p_184133_5_, float p_184133_6_) - Specified by:
playSoundin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
playSoundin classnet.minecraft.world.level.Level
-
getEntity
@Nullable public net.minecraft.world.entity.Entity getEntity(int p_73045_1_) - Overrides:
getEntityin classnet.minecraft.client.multiplayer.ClientLevel
-
getChunkSource
public net.minecraft.client.multiplayer.ClientChunkCache getChunkSource()- Specified by:
getChunkSourcein interfacenet.minecraft.world.level.LevelAccessor- Overrides:
getChunkSourcein classnet.minecraft.client.multiplayer.ClientLevel
-
getMapData
@Nullable public net.minecraft.world.level.saveddata.maps.MapItemSavedData getMapData(String mapName) - Overrides:
getMapDatain classnet.minecraft.client.multiplayer.ClientLevel
-
setMapData
public void setMapData(String p_171670_, net.minecraft.world.level.saveddata.maps.MapItemSavedData p_171671_) - Overrides:
setMapDatain classnet.minecraft.client.multiplayer.ClientLevel
-
getFreeMapId
public int getFreeMapId()- Overrides:
getFreeMapIdin classnet.minecraft.client.multiplayer.ClientLevel
-
destroyBlockProgress
public void destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) - Overrides:
destroyBlockProgressin classnet.minecraft.client.multiplayer.ClientLevel
-
getScoreboard
public net.minecraft.world.scores.Scoreboard getScoreboard()- Overrides:
getScoreboardin classnet.minecraft.client.multiplayer.ClientLevel
-
getRecipeManager
public net.minecraft.world.item.crafting.RecipeManager getRecipeManager()- Overrides:
getRecipeManagerin classnet.minecraft.client.multiplayer.ClientLevel
-
hasChunk
public boolean hasChunk(int p_217354_1_, int p_217354_2_) - Specified by:
hasChunkin interfacenet.minecraft.world.level.LevelAccessor- Specified by:
hasChunkin interfacenet.minecraft.world.level.LevelReader- Overrides:
hasChunkin classnet.minecraft.client.multiplayer.ClientLevel
-
levelEvent
public void levelEvent(@Nullable net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) - Specified by:
levelEventin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
levelEventin classnet.minecraft.client.multiplayer.ClientLevel
-